package top.ahzy.seobench.util.chromeUtil;

import java.util.ArrayList;
import java.util.List;

public class BookmarkNode {
    private String name;
    private String url;
    private List<BookmarkNode> children;
    private boolean isFolder;

    public BookmarkNode(String name) {
        this.name = name;
        this.isFolder = true;
        this.children = new ArrayList<>();
    }

    public BookmarkNode(String name, String url) {
        this.name = name;
        this.url = url;
        this.isFolder = false;
        this.children = new ArrayList<>();
    }

    // Getters and setters
    public String getName() { return name; }
    public String getUrl() { return url; }
    public List<BookmarkNode> getChildren() { return children; }
    public boolean isFolder() { return isFolder; }

    public void addChild(BookmarkNode child) {
        this.children.add(child);
    }
}
